{HACK}<!-- Hack -->
<div id="tabs">
<ul>
    <!-- IF IS_SIMPLE -->
    <li class="current"><span>Simple</span></li>
    <li><a href="{U_DETAILED}"><span>Detailed</span></a></li>
    <!-- ELSE -->
    <li><a href="{U_SIMPLE}"><span>Simple</span></a></li>
    <li class="current"><span>Detailed</span></li>
    <!-- ENDIF -->
</ul>
</div>
<div id="account-panel">
<div class="account-wide-pane">
    <!-- IF IS_SIMPLE -->
    <p>Simple permissions replaces all detailed permissions with the simple permissions below once you hit save. This may enable extra permissions to people who could not access content or a function beforehand.</p>
    <p>If a permission block is empty, permissions are inherited from the next level up. It is recommended to set view permissions for each content item.</p>
    <!-- ELSE -->
    <p>Detailed permissions are for people who understand an access control lists base permissions system. Permissions can be set granularly for each function of each content item.</p>
    <!-- ENDIF -->
<div id="acl-list">
<!-- BEGIN permision_types -->
  <h3>{permision_types.TITLE}</h3>
  <div class="perm-type">
  <!-- IF IS_SIMPLE -->
  <div class="permission-type-simple">
    <p>{permision_types.S_SIMPLE_SELECT}</p>
    <p><strong>Permissions:</strong><!--
    <!-- BEGIN permision_types.permission_desc -->
    <!-- IF permision_types.permission_desc.$_INDEX_FIRST -->
    --> <span>{permision_types.permission_desc.DESCRIPTION}</span><!--
    <!-- ELSE -->
    -->, <span>{permision_types.permission_desc.DESCRIPTION}</span><!--
    <!-- ENDIF -->
    <!-- END permision_types.permission_desc -->
    --></p>
  </div>
  <!-- ELSE -->
  <div class="permission-type-detailed">
  <ul id="permission-list">
    <!-- BEGIN permision_types.permission -->
    <li class="permission-titles">
      <p><strong>{permision_types.permission.DESCRIPTION}</strong></p>
      <!-- XXIF grant -->
      <dl class="permission-titles">
        <dt>&nbsp;</dt>
        <!-- IF $_IS_MOBILE -->
        <dd>
          {L_GRANT}
        </dd>
        <!-- ELSE -->
        <dd>
          {L_ALLOW}
        </dd>
        <dd>
          {L_DENY}
        </dd>
        <dd>
          {L_INHERIT}
        </dd>
        <!-- ENDIF -->
        <dd>
          &nbsp;
        </dd>
      </dl>
      <ul class="permission-grant-list">
        <!-- BEGIN permision_types.permission.grant -->
        <li class="permission-grant">
          <dl>
            <dt>
              {permision_types.permission.grant.DISPLAY_NAME}
		<!-- IF permision_types.permission.grant.IS_NEW -->
              <input type="hidden" name="new-grant[{permision_types.permission.grant.PERMISSION_ID},{permision_types.permission.grant.ID}]" value="true" />
		<!-- ENDIF -->
            </dt>
            <!-- IF $_IS_MOBILE -->
            <dd>
              {permision_types.permission.grant.S_GRANT}
            </dd>
            <!-- ELSE -->
            <dd>
              {permision_types.permission.grant.S_ALLOW}
            </dd>
            <dd>
              {permision_types.permission.grant.S_DENY}
            </dd>
            <dd>
              {permision_types.permission.grant.S_INHERIT}
            </dd>
            <!-- ENDIF -->
            <dd>
              {permision_types.permission.grant.S_DELETE}
            </dd>
          </dl>
        </li>
        <!-- END permision_types.permission.grant -->
      </ul>
      <!-- XXENDIF -->
      <div>
        {permision_types.permission.S_PERMISSION_GROUPS}
      	<input type="submit" name="add-permission[{permision_types.permission.ID}]" value="{L_ADD_PERMISSION}" />
      </div>
    </li>
    <!-- END permision_types.permission -->
  </ul>
  </div>
  <!-- BEGIN permision_types.grants -->
  <input type="hidden" name="{permision_types.grants.S_GRANT_INDEX}" value="{permision_types.grants.S_GRANT_KEY}" />
  <!-- END permision_types.grants -->
  <!-- ENDIF -->
  </div>
<!-- END permision_types -->
{S_ACLMODE}
</div>
</div>
</div>